package adapter;

/**
 * @author dongtao
 * @desc 适配器
 * @Data 2021-08-15
 */
public class Adapter implements Target {
    private Adaptee adaptee;
    
    public Adapter(Adaptee adaptee){
        this.adaptee = adaptee;
    }
    
    @Override
    public void typeC(){
        adaptee.light();
    }
}
